<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        
        <header class="bar bar-nav fs-header-small">
          <a href="${ctx.host}/profile" class="icon icon-left pull-left"></a>
          <h1 class="title">我的勋章</h1>
        </header>
        
        <div class="content coupon-list">
          
          <div class="content-padded">
            <div class="row">
              <c:forEach var="medal" items="${persist.medals}">
                <div class="col-33 medal ${userMedals.containsKey(medal.key) ? 'active' : ''}">
	                <h1>
	                  <span>${medal.value.name}</span>
	                </h1>
	                <p>${medal.value.description}</p>
	              </div>
              </c:forEach>
            </div>
          </div>
          
        </div>
        <!-- End Content -->
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    
  </body>
</html>